package com.yc.weixin.bean.menu;

import java.util.ArrayList;
import java.util.List;

/**
 * 含有子按钮的button,即含有子菜单的一级菜单
 * @author pj
 *
 */
public class ComplexButton extends Button {
	private List<Button> sub_button=new ArrayList<Button>();

	public List<Button> getSub_button() {
		return sub_button;
	}

	public void setSub_button(List<Button> sub_button) {
		this.sub_button = sub_button;
	}

	public ComplexButton() {
	
	}

	public ComplexButton(String name, List<Button> sub_button) {
		super(name);
		this.sub_button = sub_button;
	}

	@Override
	public String toString() {
		return "ComplexButton [sub_button=" + sub_button + ", toString()="
				+ super.toString() + "]";
	}
	
	
}
